package com.xiaoyu.lanling.feature.moment.viewholder.publish

import `in`.srain.cube.views.list.CubeRecyclerViewAdapter

object MomentPublishViewHolderManager {

    const val ITEM_VIEW_TYPE_PUBLISH_MEDIA_IMAGE = 0
    const val ITEM_VIEW_TYPE_PUBLISH_MEDIA_ADD = 1

    fun bindViewHolder(adapter: CubeRecyclerViewAdapter<*>?) {
        adapter?.setViewHolderClass(ITEM_VIEW_TYPE_PUBLISH_MEDIA_IMAGE, null, MediaImageViewHolder::class.java, 9)
        adapter?.setViewHolderClass(ITEM_VIEW_TYPE_PUBLISH_MEDIA_ADD, null, MediaAddViewHolder::class.java, 1)
    }
}